// house_pkg/pages/room/index.ts
Page({
    onLoad ({ point, building}) {
      this.setData({
        point,
        building
      })
      this.fake()
    },
    fake() {
      const rooms = []
      for (let i = 0; i < 10; i++) {
        const floor = Math.floor(i / 2) + 1
        // 房间
        const num = i % 2 + 1
        const room = [floor,0, num].join('')
        rooms.push(room)
      }
      this.setData({ rooms })
    },
    goForm(ev) {
      wx.navigateTo({
        url: `/house_pkg/pages/form/index?point=${this.data.point}&building=${this.data.building}&room=${ev.mark.room}`
      })
    }
  })